package com.tupu.entity.permission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


/**
 * 用户表
 */
@Data
@TableName("user_list")
public class UserInfo {

    @TableId(type = IdType.AUTO)
    private Integer userId;

    //用户名
    //@NotBlank(message = "账号不能为空")
    private String userName;

    //真实姓名
    //@NotBlank(message = "姓名不能为空")
    private String realName;

    //密码
    //@NotBlank(message = "密码不能为空")
    private String password;

    //确认密码
    @TableField(exist = false)
    //@NotBlank(message = "密码不能为空")
    private  String confirmPassword;

    //验证码
    @TableField(exist = false)
    private Long code;

    //用户角色
    //@NotBlank(message = "角色不能为空")
    private Integer roleId;

    //性别(1男，2女)
    //@NotBlank(message = "性别不能为空")
    private Integer sex;

    //电话
    //@NotBlank(message = "手机号码不能为空")
    private Long telephone;

    //账号状态(默认0关闭，1启用，2待审核)
    //@NotBlank(message = "状态不能为空")
    private Integer status;

    //修改时间
    private String updateTime;

    //组织
    @TableField(exist = false)
    private String organization;

    //用户角色
    @TableField(exist = false)
    private String role;

    //@NotBlank(message = "组织不能为空")
    private Integer organizationId;

    //头像
    private String images;

    //@NotBlank(message = "验证码不能为空")
    @TableField(exist = false)
    private  String validatecode;

    @TableField(exist = false)
    private String codeId;
}
